import { orgRequest } from '@/utils/HttpRequest';

export function organList() {
  return orgRequest.get<any>('organ/navList');
}
export function organInfo(id: number) {
  return orgRequest.get<API.Organ>('organ/info', { id: id });
}
export function organByList() {
  let data = orgRequest.get<API.Result<API.Pagination>>('organ/list');
  return data;
}
export function organEdit(params: API.Organ) {
  return orgRequest.post('organ/edit', params);
}
